#ifndef EDITPOST_H
#define EDITPOST_H

#include "Entity/DictType.h"
#include "api/systemManager/postmanagerapi.h"
#include <QDialog>


namespace Ui {
class EditPost;
}

class EditPost : public QDialog
{
    Q_OBJECT

public:
    explicit EditPost(int id,QList<DictData> sys_normal_disable,QWidget *parent = nullptr);
    ~EditPost();
signals:
    void success();
private slots:
    void on_btn_cancel_clicked();

    void on_btn_ok_clicked();

private:
    Ui::EditPost *ui;
    PostManagerApi api;
    Post post;
    QList<DictData> sys_normal_disable;
    int postId;

    void init();
};

#endif // EDITPOST_H
